package model

import (
	"fmt"
	"gitee.com/liumou_site/logger"
	"os"
)

func (api *DownLoad) DeleteDir() {
	logger.Error("正在删除文件夹" + api.SavePath)
	err := os.RemoveAll(api.SavePath)
	if err != nil {
		fmt.Println("Error deleting directory:", err)
		return
	}

	fmt.Println("Directory deleted successfully.")
}
